package com.yaodian100.ec.order.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;

import com.yaodian100.core.common.entity.BaseEntity;

/**
 * 
 * @author scott.su
 *
 */
@Entity(name = "orderMemo")
@Table(name = "EC_ORDER_MEMO")
public class OrderMemo extends BaseEntity {
	
	private static final long serialVersionUID = 3484128914441628654L;

	@Id
	@GeneratedValue(strategy = GenerationType.AUTO, generator = "seq_ec_order_memo")
	@SequenceGenerator(name = "seq_ec_order_memo", sequenceName = "SEQ_EC_ORDER_MEMO")
	@Column(name = "MEMO_ID")
	private Long memoId;
	
	@Column(name = "ORDER_ID", length = 13, nullable = false)
	private String orderId;
	
	@Column(name = "MEMO", length = 300, nullable = false)
	private String memo;

	public Long getMemoId() {
		return memoId;
	}

	public void setMemoId(Long memoId) {
		this.memoId = memoId;
	}

	public String getOrderId() {
		return orderId;
	}

	public void setOrderId(String orderId) {
		this.orderId = orderId;
	}

	public String getMemo() {
		return memo;
	}

	public void setMemo(String memo) {
		this.memo = memo;
	}
	
}
